package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.base.BaseEntity;
import java.util.Date;

/**
 * 城轨轴箱设备状态（接口表 t_equipment_status_cgzx
 * 
 * @author ruoyi
 * @date 2019-02-22
 */
public class TEquipmentStatusCgzx extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** $column.columnComment */
	private String gid;
	/** 设备编码 */
	private String code;
	/** 设备状态
0：开机
1：运行中
2：暂停
3：待机
4：关闭
5：报警
6：故障
7：检修
 */
	private Integer status;
	/** 工位编号 */
	private String workstationCode;
	/** 发生时间 */
	private Date happentime;
	/** 故障代码 */
	private String faultCode;
	/** 标志位 */
	private Integer flag;

	public void setGid(String gid) 
	{
		this.gid = gid;
	}

	public String getGid() 
	{
		return gid;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setStatus(Integer status) 
	{
		this.status = status;
	}

	public Integer getStatus() 
	{
		return status;
	}
	public void setWorkstationCode(String workstationCode) 
	{
		this.workstationCode = workstationCode;
	}

	public String getWorkstationCode() 
	{
		return workstationCode;
	}
	public void setHappentime(Date happentime) 
	{
		this.happentime = happentime;
	}

	public Date getHappentime() 
	{
		return happentime;
	}
	public void setFaultCode(String faultCode) 
	{
		this.faultCode = faultCode;
	}

	public String getFaultCode() 
	{
		return faultCode;
	}
	public void setFlag(Integer flag) 
	{
		this.flag = flag;
	}

	public Integer getFlag() 
	{
		return flag;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("gid", getGid())
            .append("code", getCode())
            .append("status", getStatus())
            .append("workstationCode", getWorkstationCode())
            .append("happentime", getHappentime())
            .append("faultCode", getFaultCode())
            .append("flag", getFlag())
            .toString();
    }
}
